﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DATA;
using DTO;
namespace BUS
{
    public class NewsTypeBUS
    {
        public List<NewsTypeDTO> GetAllNewsTypes()
        {
            NewsTypeREP acc = new NewsTypeREP();
            return acc.GetAllNewsTypes();
        }
        public List<NewsTypeDTO> GetActiveNewsType()
        {
            NewsTypeREP acc = new NewsTypeREP();
            return acc.GetActiveNewsType();
        }

        public bool AddNewsType(NewsTypeDTO newAccount)
        {
            NewsTypeREP acc = new NewsTypeREP();
            return acc.AddNewsType(newAccount);
        }
        public void DeleteNewsType(int Accountid)
        {
            NewsTypeREP acc = new NewsTypeREP();
            acc.DeleteNewsType(Accountid);
        }
        public bool UpdateNewsType(NewsTypeDTO accountup)
        {
            NewsTypeREP acc = new NewsTypeREP();
            return acc.UpdateNewsType(accountup);


        }
    }
}
